export class HttpError extends Error {
    private _code: number;
    constructor(code: number, message?: string, public i18nMsg?: string, public data?: Object) {
        super(message)
        this._code = code
    }

    get code(): number {
        return this._code
    }
}